class InsidePosition < ActiveRecord::Base
  has_many :order_items
  
  def self.find_inside_position_in_dir(direction_sides)
    inside_positions_in_direction_side = {}
    positions_in_same_dir = []
    direction_sides.each do |direction_side|
      positions_in_same_dir = InsidePosition.find(:all,:conditions => ["direction_side = ?", direction_side])
      inside_positions_in_direction_side["#{direction_side}"] = positions_in_same_dir
      positions_in_same_dir = []
    end
    return inside_positions_in_direction_side
  end
  
end
